package com.ck.ips.service.sys;

import com.ck.common.model.OperationLog;
import com.ck.common.page.PageInfo;
import com.ck.ips.model.vo.sys.OperationLogListVO;
import org.springframework.transaction.annotation.Transactional;

/**
 * 日志Service
 */
public interface OperationLogService {

    /**
     * 保存日志
     *
     * @param operationLog operationLog
     */
    @Transactional( rollbackFor = Exception.class)
    void saveOperationLog(OperationLog operationLog);

    /**
     * 获取操作日志分页列表
     *
     * @param startTime   开始时间
     * @param endTime     接受时间
     * @param pageNum     当前页ss
     * @param pageSize    每页显示条数
     * @return PageInfo<OperationLogListVO>
     */
    PageInfo<OperationLogListVO> listOperationLogByPage(String startTime, String endTime, String userName,String realName,String ip, Integer pageNum, Integer pageSize);

}
